<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>指尖金融</title>
	<link href="../../../res/png/icon.png" rel="shortcut icon" />
	<link href="../../../css/common.css" type="text/css" rel="stylesheet">
	<link href="../../../css/base.css" type="text/css" rel="stylesheet">
	<link href="financingManage.css" type="text/css" rel="stylesheet">
	<link href="../../../res/png/icon.png" rel="shortcut icon" />
	<link href="../../../component/autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="../../../js/My97DatePicker/skin/WdatePicker.css" />
</head>
<body>
<div class="content4 content41 page" data-page="financingDetailInfo" id="financingDetailInfo">
	<p class="location">
		当前位置:
		<label class="locationInfo">融资项目</label>
	</p>
	<!--<div class="platformBtns">
		<div class="auditState"><a class="submit-financeContract none">签订融资合同</a><a class="submit-supervisionContract">签订监管合同</a></div>
		<input type="button" class="button-submit-contract float-right none" value="合同签定" />
		<input permissionId="financeBookingSpace_1" class="button-submit-order button-submit-undefined float-right" type="button" value="订舱" />
		<input permissionId="replenish_1" class="button-submit-replenish button-submit-undefined float-right" type="button" value="补货" />
		<input permissionId="phase_1" class="button-submit-pahase button-submit-undefined float-right" type="button" value="收息" />
		<input class="button-submit-pahase-record button-submit-undefined float-right" type="button" value="收息记录" />
		<input class="button-submit-pahase-showBulkstock button-submit-undefined float-right" type="button" value="货物一览" />
	</div>-->
	<div class="tab1" style="width: 100%;">
		<script type="text/template" id="financingDetail">
			{@each datas as it}
			<div class="d3">
				<div class="basic_info">
					基本信息
					<p><span class="span1" id="detailEnterpriseName">企业名称：${it.enterpriseName}</span>
					</p>
					<p><span class="span1">融资编号：<span id="detailFinanceNumber">${it.financeNumber}</span></span><span class="span2">申请时间：<span id="detailApplicationDateTime">${it.applicationDateTime}</span></span>
					</p>
					<p><span class="span1">申请金额：<span class="span3">&#65509;<span id="detailApplicationAmount" class="span4">${formatCurrency(it.applicationAmount)}<br />(${changeMoneyToChinese(it.applicationAmount)})</span></span>
						</span><span class="span2">审核金额：<span class="span3">&#65509;<span class="span4" id="detailFinanceAmount">${formatCurrency(it.financeAmount)}</span><span style="font-size: 18px; font-weight: bold;">(${changeMoneyToChinese(it.financeAmount)})</span></span>
						<!--<a href="information.html" class="financingcost" style="color: #6ba8e7;">费用信息</a>-->
						</span>
						</span>
					</p>
					<p>
						<span class="span1">授信额度：&#65509;${formatCurrency(it.creditQuota)}（已使用${formatCurrency(it.creditQuotaConsume)}）</span>
						<span class="span2">货物估值：<span class="span3">&#65509;<span>${formatCurrency(it.valuation)}</span></span>
						</span>
					</p>
					<p>
						<span class="span1">借款方式：<span id="detailLoanMethod">${getValueByKey(7, it.financeProductInnerDetail.productType)}</span>
						</span>
						<span class="span2">保证金：&#65509;${it.bail}</span>
					</p>
					<p>
						<span class="span1">借款费率：
						<span>${it.financeProductInnerDetail.interest}%</span></span>
						<span class="span2">借款期限：<span id="detailLoanTimeLimit">${it.financeProductInnerDetail.financeDays}</span>天</span>
						<!--<p><span class="span1">融资产品：<span id="accountDetailInterest">${it.financeProductInnerDetail.productName}</span></span><span class="span2"></span></p>-->
						<p><span class="span1">保险申明价值：<span id="accountDetailInterest">${it.declaredValue}万元</span></span><span class="span2">运输条款：${getValueByKey(48, it.deliveryMethod)}</span></p>
						<p><span class="span1">合同编号：<span>${it.financeContractDetail.financeContractNumber}</span></span><span class="span2"></span></p>
					</p>
				</div>
				<div class="goods_status" id="detailFinanceState">
					${getValueByKey(30, it.financeState)}
				</div>
			</div>
			{@if it.financeAuditDetail != null || it.financeAuditDetail.insurance == 1}
			<div class="return_info">
				保险信息
				<p><span class="span1">保额：&#65509;${formatCurrency(it.financeAuditDetail.forceAmount)}</span><span class="span2">保险公司：${it.financeAuditDetail.insurer}</span></p>
				<p><span class="span1" style="width: 300px;">险种：${it.financeAuditDetail.insuranceType}</span><span class="span2">保单编号：${it.financeAuditDetail.insuranceNumber}</span></p>
				<p><span class="span1">保险费用：&#65509;${formatCurrency(it.financeAuditDetail.insuranceAmount)}</span><span class="span2"></span></p>
			</div>
			{@/if}
			<div class="clear"></div>
			<div class="pledging_goods">
				<p class="goods_type">货物/单据<span>${it.bulkstockCategory}</span></p>
				<table border="0" cellspacing="0" cellpadding="0">
					{@if it.productType == 4}
						<tr>
							<th>产品名称</th>
							<th>产品型号</th>
							<th>数量</th>
						</tr>
						{@each it.bulkstocks as that}
						<tr>
							<td>${that.bulkstockName}</td>
							<td>${that.specification}</td>
							<td>${that.quantity}(${that.unit})</td>
						</tr>
						{@/each}
					{@else}
						<tr>
							<th>货物名称</th>
							<th>规格型号</th>
							<th>数量</th>
							<th>重量(吨)</th>
							<th>体积(m<sup>3</sup>)</th>
							<th>产地</th>
							<th>生产厂家</th>
							<th>已交割</th>
							<th>到港</th>
							<th>已提</th>
							<th>可提</th>
							<th>在押</th>
							<th>异常</th>
							<th>冷藏</th>
							<th>危险品</th>
						</tr>
						{@each it.bulkstocks as that}
						<tr>
							<td>${that.bulkstockName}</td>
							<td>${that.specification}</td>
							<td>${that.quantity}(${that.unit})</td>
							<td>${that.weight}</td>
							<td>${that.volume}</td>
							<td>${that.originPlace}</td>
							<td>${that.manufacturer}</td>
							<td><a class="bulkstockQuantitys" inventoryState="1">${that.supervision}</a></td>
							<td><a class="bulkstockQuantitys" inventoryState="2">${that.harbor}</a></td>
							<td><a class="bulkstockQuantitys" inventoryState="3">${that.pickup}</a></td>
							<td><a class="bulkstockQuantitys" inventoryState="4">${that.harbor-that.pickup}</a></td>
							<td><a class="bulkstockQuantitys" inventoryState="5" class="under_a">${that.incustody}</a></td>
							<td><a class="bulkstockQuantitys" inventoryState="6">${that.abnormal}</a></td>
							<td>
								{@if that.coldStorage == true}
								<a class="showcoldStorage" precool="${that.precool}" ptiOk="${that.ptiOk}" plug="${that.plug}" plugType="${that.plugType}" tempUpDown="${that.tempUpDown}" setTemperature="${that.setTemperature}" tempUnit="${that.tempUnit}" tempMax="${that.tempMax}" tempMin="${that.tempMin}"
								vent="${that.vent}" coolRemark="${that.coolRemark}" coolLetter="${that.coolLetter}">查看</a> {@else} 否 {@/if}
							</td>
							<td>
								{@if that.dangerous == true}
								<a class="showDangerous" imdg="${that.imdg}" unNum="${that.unNum}" declaration="${that.declaration}" instructionManual="${that.instructionManual}" dangerousRemark="${that.dangerousRemark}">查看</a> {@else} 否 {@/if}
							</td>
						</tr>
						{@/each}
					{@/if}
				</table>
			</div>
			<div class="goods_addr">
				<p>收交货地</p>
				<p><span class="span1">收货地：<span id="detailReceiveAddress">${it.receiveProvince}--${it.receiveCity}--${it.receiveDistrict}--${it.receiveAddress}</span></span><span class="span2">收货人：<span id="detailReceiveContactor">${it.receiveContactor}</span></span>
					<span class="span3">收货联系人电话：<span id="detailReceiveContactPhone">${it.receiveContactPhone}</span></span>
				</p>
				<p><span class="span1">发货地：<span id="detailDeliverAddress">${it.deliverProvince}--${it.deliverCity}--${it.deliverDistrict}--${it.deliverAddress}</span></span><span class="span2">发货人：<span id="detailDeliverContactor">${it.deliverContactor}</span></span>
					<span class="span3">发货联系人电话：<span id="detailDeliverContactPhone">${it.deliverContactPhone}</span></span>
				</p>
			</div>
			<div class="pledging_goods">
				<p style="font-size: 15px; font-weight: bold; margin-bottom: 26px;">订舱箱信息</p>
				<p><span class="span1">订舱单号：${it.bookingSpaceNumber}</span></p>
				<table border="0" cellspacing="0" cellpadding="0">
					<thead>
						<tr style="background-color: #f4f5fa;">
							<th>箱型</th>
							<th>尺寸</th>
							<th>空重</th>
							<th>箱量</th>
							<th>SOC</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody class="containerBillBody">
						{@each it.containerBills as item}
						<tr style="background: none;" containerBillId="${item.containerBillId}">
							<td>${item.model}</td>
							<td>${item.dimension}</td>
							<td>${item.emptyWeight}</td>
							<td>${item.quantity}</td>
							<td>${getValueByKey(52, item.soc)}</td>
							<td>
								{@if item.containerSource==2}
								<a permissionId="financeBookingSpace_1" class="delete permissionLink none" href="javascript:void(0);">删除</a>
								{@/if}
							</td>
						</tr>
						{@/each}
					</tbody>
				</table>
			</div>
			<div class="require_keep">
				<p>保管要求</p>
				<p>包装要求：${it.packingDemand}</p>
				<p>标记要求：${it.markDemand}</p>
				<p>储存要求：${it.storeDemand}</p>
				<p>保管要求：${it.safekeep}</p>

			</div>

			{@/each}
		</script>
	</div>
	<!--完成融资项目-->
	<div id="supervisionEndall_dialog" class="dialog none" style="margin-top: -87.5px; margin-left: -200px;">
		<div class="dialogTitle">完成融资</div>
		<button class="closeDiv">×</button>
		<div class="dialogContent supervisionEndallContent" action="createSupervisionEndall" version="v1.0">
			<input type="hidden" name="financeId" />
			<div class="EendillContent">
				<p>
					<span for="" class="field-lab2 financing_field-lab2">说明：</span>
					<textarea isNull="1" codeName="说明" class="field-input field-textarea2" name="remark" maxlength="255"></textarea>
				</p>
			</div>
			<div class="footerBtn">
				<div id="sure_supervisionEndall" class="dialogBtn dialogHandlerBtn">提交</div>
			</div>
		</div>
	</div>
	<!--下发运输通知-->
	<div id="transportNotice_dialog" class="dialog transportNotice_dialog none" style="margin-top: -87.5px; margin-left: -200px;">
		<div class="dialogTitle">下发运输通知</div>
		<button class="closeDiv">×</button>
		<div class="dialogContent transportNoticeContent" action="createTransportNotice" version="v1.0">
			<div>
				<input type="hidden" name="financeId" />
				<p>
					<span for="" class="field-lab2 financing_field-lab2"> 融资信息编号：
			<input class="field-input noInput" minLength="1" maxLength="255" type="text" name="financeNumber" placeholder="融资信息编号" readonly="readonly" />
			
				<span for="" class="field-lab2 financing_field-lab2">物流公司：</span>
					<input type="hidden" name="logisticsCompanyName" class="supervisionCompanyNameInput" />
					<select class="field-input weights" id="transportCompanyName" name="logisticsCompanyId">
						<script type="text/template" id="transportCompanyTpl">
							<option value=""></option>
							{@each datas as it}
							<option value="${it.companyId}">${it.companyName}</option>
							{@/each}
						</script>
					</select>
				</p>
				<p>
					<span for="" class="field-lab2 financing_field-lab2">运输通知说明：</span>
					<textarea class="field-input field-textarea2" name="noticeRemark" id="noticeRemark"></textarea>

				</p>
				<div>

					<table class="table">
						<thead>
							<tr>
								<th>操作</th>
								<th>运单号</th>
								<th>箱号</th>
								<th>箱型尺寸</th>
								<th>货名</th>
								<th>数量--重量--体积</th>
								<th>实际数量</th>
								<th>铅封号1</th>
								<th>铅封号2</th>
							</tr>
						</thead>
						<tbody id="inventoryBody">
							<script type="text/template" id="inventoryTpl">
								{@each datas as it,index}
								<tr>
									<td>
										<input type="checkbox" class="inventoryId" name="inventoryId" value="${it.inventoryId}" />
									</td>
									<td>${it.waybillNumber}</td>
									<td>${it.caseNumber}</td>
									<td>${it.caseSize}</td>

									<td>{@each it.containerBulkstocks as that} ${that.bulkstockName}
										<br/> {@/each}
									</td>
									<td>
										{@each it.containerBulkstocks as that} ${that.plannedQuantity}--${that.weight}--${that.volume}
										<br/> {@/each}
									</td>
									<td>{@each it.containerBulkstocks as that} ${that.quantity}
										<br/> {@/each}
									</td>

									<td>${it.facingSlip}</td>
									<td>${it.facingSlipNext}</td>
								</tr>
								{@/each}
							</script>
						</tbody>
					</table>

				</div>

			</div>
		</div>
	</div>
</div>
	<script type="text/javascript" src="../../../js/jquery-1.11.1.min.js"></script>
	<script src="../../../component/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="../../../js/seajs/sea.js"></script>
	<script type="text/javascript" src="../../../js/seajs/seajs-text.js"></script>
	<script type="text/javascript" src="../../../js/seajs/seajs-css.js"></script>
	<script type="text/javascript" src="../../../js/platform/config.js"></script>
	<script type="text/javascript" src="../../../js/juicer-min.js"></script>
	<script type="text/javascript"
		src="../../../component/autocomplete/jquery.autocomplete.js"></script>

	<script src="../../../js/ajaxfileupload.js" type="text/javascript"
		charset="utf-8"></script>
	<script src="../../../js/My97DatePicker/WdatePicker.js"
		type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		seajs.use('./financingInfo', function(financingInfo) {
			financingInfo.init();
		});
	</script>
</body>
</html>